﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="default.aspx.cs" Inherits="Server_Firewall_default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Stylesheet" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="SubNavigation" Runat="Server">
     <ul>
        <li class="first">
            <a href="../Device/default.aspx">Overview</a>
        </li>
        <li  class="last">
            <a href="../Device/adddevice.aspx">Add Cloud Server</a>
        </li>
    </ul>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PageHeader" Runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MainContent" Runat="Server">
    <div style="width: 70%; float:left; padding-right: 20px;padding-top:10px; border-right:1px solid #C0C0C0;">               
        <asp:DataList ID="dlFirewall" runat="server" Width="100%"
            BorderWidth="0px"  CellPadding="0">
                <ItemTemplate>
                    <div style="width:100%;padding-top: 10px">      
                        <ul>
                            <li>
                                <%# Eval("Code")%>
                            </li>
                            <li>                   
                                <asp:Image ID="Image1" runat="server" BorderWidth="0" ImageUrl="~/Resources/Images/firewall.gif"  Width="120" Height="43" />
                           </li>
                            
                            <li>
                                <%#Eval("Name")%>
                            </li>
                        </ul>
                        <br />
                </ItemTemplate>
            </asp:DataList>   
            <br />
            
            <asp:DataList ID="dlDevices" runat="server" Width="100%">
                <HeaderTemplate>
                    <table width="100%">
                        <tr style="width:100%;border-bottom:1px solid #C0C0C0;text-align:left">
                            <td width="30%">
                                <b>Devices Behind Firewall</b>
                            </td>                            
                            <td width="30%">
                                <b>Friendly Name</b>
                            </td>
                            <td width="30%">
                                <b>Device Ip Addresses</b>
                            </td>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                        <tr style="width:100%;border-bottom:1px solid #C0C0C0;text-align:left;height:25px" >
                            <td>
                                <asp:HyperLink ID="HyperLink2" NavigateUrl='<%#"~/Server/Device/devicesdetails.aspx?Deviceid="+Eval("Id") %>' runat="server"><%#Eval("Name") %></asp:HyperLink>
                            </td>
                            <td><%#Eval("FriendlyName") %> </td>
                            <td>
                                <%#Eval("IP") %>
                            </td>
                        </tr>                    
                </ItemTemplate>
                <FooterTemplate>
                    </table>
                </FooterTemplate>
            </asp:DataList>
    </div>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="SideBar" Runat="Server">
    <div align="left" style="width:25%; float:left;padding-left:20px">
        <div style="width:100%;border-bottom:1px solid #C0C0C0">Options</div>
        <asp:HyperLink ID="hplEditDevice" runat="server" NavigateUrl="#">Edit Device Details</asp:HyperLink><br />
        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="#">Request a Configuration Change</asp:HyperLink><br /><br />

        <div style="width:100%;border-bottom:1px solid #C0C0C0">IP Addresses</div>
        <asp:Label ID="lblIPFirewall" runat="server" ></asp:Label>
        <br /><br />
    </div>
</asp:Content>

